Optimal. Leaf size=377 \[ -\frac {a^{5/2} (c+d)^3 \left (3 c^2-34 c d+283 d^2\right ) \tan ^{-1}\left (\frac {\sqrt {a} \sqrt {d} \cos (e+f x)}{\sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}\right )}{128 d^{5/2} f}-\frac {a^3 (c+d)^2 \left (3 c^2-34 c d+283 d^2\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{128 d^2 f \sqrt {a+a \sin (e+f x)}}-\frac {a^3 (c+d) \left (3 c^2-34 c d+283 d^2\right ) \cos (e+f x) (c+d \sin (e+f x))^{3/2}}{192 d^2 f \sqrt {a+a \sin (e+f x)}}-\frac {a^3 \left (3 c^2-34 c d+283 d^2\right ) \cos (e+f x) (c+d \sin (e+f x))^{5/2}}{240 d^2 f \sqrt {a+a \sin (e+f x)}}+\frac {3 a^3 (c-7 d) \cos (e+f x) (c+d \sin (e+f x))^{7/2}}{40 d^2 f \sqrt {a+a \sin (e+f x)}}-\frac {a^2 \cos (e+f x) \sqrt {a+a \sin (e+f x)} (c+d \sin (e+f x))^{7/2}}{5 d f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.57, antiderivative size = 377, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 5, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.172, Rules used = {2842, 3060,
2849, 2854, 211} \begin {gather*} -\frac {a^{5/2} (c+d)^3 \left (3 c^2-34 c d+283 d^2\right ) \text {ArcTan}\left (\frac {\sqrt {a} \sqrt {d} \cos (e+f x)}{\sqrt {a \sin (e+f x)+a} \sqrt {c+d \sin (e+f x)}}\right )}{128 d^{5/2} f}-\frac {a^3 \left (3 c^2-34 c d+283 d^2\right ) \cos (e+f x) (c+d \sin (e+f x))^{5/2}}{240 d^2 f \sqrt {a \sin (e+f x)+a}}-\frac {a^3 (c+d) \left (3 c^2-34 c d+283 d^2\right ) \cos (e+f x) (c+d \sin (e+f x))^{3/2}}{192 d^2 f \sqrt {a \sin (e+f x)+a}}-\frac {a^3 (c+d)^2 \left (3 c^2-34 c d+283 d^2\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{128 d^2 f \sqrt {a \sin (e+f x)+a}}+\frac {3 a^3 (c-7 d) \cos (e+f x) (c+d \sin (e+f x))^{7/2}}{40 d^2 f \sqrt {a \sin (e+f x)+a}}-\frac {a^2 \cos (e+f x) \sqrt {a \sin (e+f x)+a} (c+d \sin (e+f x))^{7/2}}{5 d f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 211
Rule 2842
Rule 2849
Rule 2854
Rule 3060
Rubi steps
\begin {align*} \int (a+a \sin (e+f x))^{5/2} (c+d \sin (e+f x))^{5/2} \, dx &=-\frac {a^2 \cos (e+f x) \sqrt {a+a \sin (e+f x)} (c+d \sin (e+f x))^{7/2}}{5 d f}+\frac {\int \sqrt {a+a \sin (e+f x)} \left (\frac {1}{2} a^2 (c+17 d)-\frac {3}{2} a^2 (c-7 d) \sin (e+f x)\right ) (c+d \sin (e+f x))^{5/2} \, dx}{5 d}\\ &=\frac {3 a^3 (c-7 d) \cos (e+f x) (c+d \sin (e+f x))^{7/2}}{40 d^2 f \sqrt {a+a \sin (e+f x)}}-\frac {a^2 \cos (e+f x) \sqrt {a+a \sin (e+f x)} (c+d \sin (e+f x))^{7/2}}{5 d f}+\frac {\left (a^2 \left (3 c^2-34 c d+283 d^2\right )\right ) \int \sqrt {a+a \sin (e+f x)} (c+d \sin (e+f x))^{5/2} \, dx}{80 d^2}\\ &=-\frac {a^3 \left (3 c^2-34 c d+283 d^2\right ) \cos (e+f x) (c+d \sin (e+f x))^{5/2}}{240 d^2 f \sqrt {a+a \sin (e+f x)}}+\frac {3 a^3 (c-7 d) \cos (e+f x) (c+d \sin (e+f x))^{7/2}}{40 d^2 f \sqrt {a+a \sin (e+f x)}}-\frac {a^2 \cos (e+f x) \sqrt {a+a \sin (e+f x)} (c+d \sin (e+f x))^{7/2}}{5 d f}+\frac {\left (a^2 (c+d) \left (3 c^2-34 c d+283 d^2\right )\right ) \int \sqrt {a+a \sin (e+f x)} (c+d \sin (e+f x))^{3/2} \, dx}{96 d^2}\\ &=-\frac {a^3 (c+d) \left (3 c^2-34 c d+283 d^2\right ) \cos (e+f x) (c+d \sin (e+f x))^{3/2}}{192 d^2 f \sqrt {a+a \sin (e+f x)}}-\frac {a^3 \left (3 c^2-34 c d+283 d^2\right ) \cos (e+f x) (c+d \sin (e+f x))^{5/2}}{240 d^2 f \sqrt {a+a \sin (e+f x)}}+\frac {3 a^3 (c-7 d) \cos (e+f x) (c+d \sin (e+f x))^{7/2}}{40 d^2 f \sqrt {a+a \sin (e+f x)}}-\frac {a^2 \cos (e+f x) \sqrt {a+a \sin (e+f x)} (c+d \sin (e+f x))^{7/2}}{5 d f}+\frac {\left (a^2 (c+d)^2 \left (3 c^2-34 c d+283 d^2\right )\right ) \int \sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)} \, dx}{128 d^2}\\ &=-\frac {a^3 (c+d)^2 \left (3 c^2-34 c d+283 d^2\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{128 d^2 f \sqrt {a+a \sin (e+f x)}}-\frac {a^3 (c+d) \left (3 c^2-34 c d+283 d^2\right ) \cos (e+f x) (c+d \sin (e+f x))^{3/2}}{192 d^2 f \sqrt {a+a \sin (e+f x)}}-\frac {a^3 \left (3 c^2-34 c d+283 d^2\right ) \cos (e+f x) (c+d \sin (e+f x))^{5/2}}{240 d^2 f \sqrt {a+a \sin (e+f x)}}+\frac {3 a^3 (c-7 d) \cos (e+f x) (c+d \sin (e+f x))^{7/2}}{40 d^2 f \sqrt {a+a \sin (e+f x)}}-\frac {a^2 \cos (e+f x) \sqrt {a+a \sin (e+f x)} (c+d \sin (e+f x))^{7/2}}{5 d f}+\frac {\left (a^2 (c+d)^3 \left (3 c^2-34 c d+283 d^2\right )\right ) \int \frac {\sqrt {a+a \sin (e+f x)}}{\sqrt {c+d \sin (e+f x)}} \, dx}{256 d^2}\\ &=-\frac {a^3 (c+d)^2 \left (3 c^2-34 c d+283 d^2\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{128 d^2 f \sqrt {a+a \sin (e+f x)}}-\frac {a^3 (c+d) \left (3 c^2-34 c d+283 d^2\right ) \cos (e+f x) (c+d \sin (e+f x))^{3/2}}{192 d^2 f \sqrt {a+a \sin (e+f x)}}-\frac {a^3 \left (3 c^2-34 c d+283 d^2\right ) \cos (e+f x) (c+d \sin (e+f x))^{5/2}}{240 d^2 f \sqrt {a+a \sin (e+f x)}}+\frac {3 a^3 (c-7 d) \cos (e+f x) (c+d \sin (e+f x))^{7/2}}{40 d^2 f \sqrt {a+a \sin (e+f x)}}-\frac {a^2 \cos (e+f x) \sqrt {a+a \sin (e+f x)} (c+d \sin (e+f x))^{7/2}}{5 d f}-\frac {\left (a^3 (c+d)^3 \left (3 c^2-34 c d+283 d^2\right )\right ) \text {Subst}\left (\int \frac {1}{a+d x^2} \, dx,x,\frac {a \cos (e+f x)}{\sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}\right )}{128 d^2 f}\\ &=-\frac {a^{5/2} (c+d)^3 \left (3 c^2-34 c d+283 d^2\right ) \tan ^{-1}\left (\frac {\sqrt {a} \sqrt {d} \cos (e+f x)}{\sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}\right )}{128 d^{5/2} f}-\frac {a^3 (c+d)^2 \left (3 c^2-34 c d+283 d^2\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{128 d^2 f \sqrt {a+a \sin (e+f x)}}-\frac {a^3 (c+d) \left (3 c^2-34 c d+283 d^2\right ) \cos (e+f x) (c+d \sin (e+f x))^{3/2}}{192 d^2 f \sqrt {a+a \sin (e+f x)}}-\frac {a^3 \left (3 c^2-34 c d+283 d^2\right ) \cos (e+f x) (c+d \sin (e+f x))^{5/2}}{240 d^2 f \sqrt {a+a \sin (e+f x)}}+\frac {3 a^3 (c-7 d) \cos (e+f x) (c+d \sin (e+f x))^{7/2}}{40 d^2 f \sqrt {a+a \sin (e+f x)}}-\frac {a^2 \cos (e+f x) \sqrt {a+a \sin (e+f x)} (c+d \sin (e+f x))^{7/2}}{5 d f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.89, size = 395, normalized size = 1.05 \begin {gather*} \frac {(a (1+\sin (e+f x)))^{5/2} \left (\frac {(c+d)^3 \left (3 c^2-34 c d+283 d^2\right ) \left (2 \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {d} \sin \left (\frac {1}{4} (2 e-\pi +2 f x)\right )}{\sqrt {c+d \sin (e+f x)}}\right )+\tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {d} \cos \left (\frac {1}{4} (2 e-\pi +2 f x)\right )}{\sqrt {c+d \sin (e+f x)}}\right )-\log \left (\sqrt {2} \sqrt {d} \cos \left (\frac {1}{4} (2 e-\pi +2 f x)\right )+\sqrt {c+d \sin (e+f x)}\right )\right )}{d^{5/2}}+\frac {2 \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) \sqrt {c+d \sin (e+f x)} \left (45 c^4-390 c^3 d-8396 c^2 d^2-12762 c d^3-5521 d^4+4 d^2 \left (93 c^2+488 c d+331 d^2\right ) \cos (2 (e+f x))-48 d^4 \cos (4 (e+f x))-30 c^3 d \sin (e+f x)-3322 c^2 d^2 \sin (e+f x)-7774 c d^3 \sin (e+f x)-3874 d^4 \sin (e+f x)+252 c d^3 \sin (3 (e+f x))+348 d^4 \sin (3 (e+f x))\right )}{15 d^2}\right )}{256 f \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^5} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 180.00, size = 0, normalized size = 0.00 \[\int \left (a +a \sin \left (f x +e \right )\right )^{\frac {5}{2}} \left (c +d \sin \left (f x +e \right )\right )^{\frac {5}{2}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 836 vs.
\(2 (351) = 702\).
time = 1.33, size = 2145, normalized size = 5.69 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int {\left (a+a\,\sin \left (e+f\,x\right )\right )}^{5/2}\,{\left (c+d\,\sin \left (e+f\,x\right )\right )}^{5/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________